﻿using BuddHa.Sms.AliCloud.Models;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuddHa.Sms.AliCloud
{
    public static class ServiceCollectionExtensions
    {
        public static void AddAliCloudSMS(this IServiceCollection services, Action<SMSSetting> action)
        {
            services.Configure(action);

            services.AddTransient<ISMS, AliCloudSMS>();

        }
    }
}
